package com.dxy.yesas2020goals.study.partone.disignpattern.reposibilitypattern.withbuilder;

/**
 * @author victorydeng
 * @Classname Test
 * @Description TODO
 * @Date 2020/5/13 10:19
 * @Created by victorydeng
 */
public class Test {
    public static void main(String[] args) {
        Handler.Builder builder = new Handler.Builder();
        builder.addHandler(new LoginHandler())
                .addHandler(new ValidateHandler())
                .addHandler(new AuthHandler()).build().doHandler(new Member("dxy","666","管理员"));
    }
}
